package com.geekcoding.geekoj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.Date;

/**
 * @author xiaobai
 * @since 2024/02/25 14:08
 **/

@Data
@SuperBuilder
@RequiredArgsConstructor
public abstract class BaseEntity {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @Builder.Default
    private Date createTime = new Date();

    private Date updateTime;
}
